"""web URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from . import views
urlpatterns = [
    #首页
    url(r'^$',views.index,name='index'),
    #用户信息的添加
    url(r'^user/add/$',views.user_add,name='user_add'),
    #用户信息添加的执行
    url(r'^user/insert/$',views.user_insert,name='user_insert'),
    #用户信息的列表显示
    url(r'^user/list/$',views.user_list,name='user_list'),
    #用户信息的删除
    url(r'^user/del/(?P<uid>[0-9]+)/$',views.user_del,name='user_del'),
    #用户修改信息的编辑页面
    url(r'^user/edit/(?P<uid>[0-9]+)/$',views.user_edit,name='user_edit'),
    #用户修改信息的执行
    url(r'^user/update/$',views.user_update,name='user_update'),

    #城市的三级联动
    url(r'^citys/$',views.citys,name='citys'),
    url(r'^get/citys/$',views.getcitys,name='getcitys'),






]
